package core.creators.units;

import components.BasicStatsComponent;
import components.GridPositionComponent;
import core.GridManager;
import HECS.HECSComponent;
import HECS.HECSEntity;
import HECS.HECSManager;

public class PlayerCreator {

	public static void spawnPlayer(HECSManager ecsManager, GridManager gridManager) {
		int x = 0, y = 110, z = 0;
		int health_max = 10;
		HECSEntity entity = ecsManager.createEntity();
		BasicStatsComponent bs = new BasicStatsComponent(health_max);
		GridPositionComponent gp = new GridPositionComponent(x, y, z);
		ecsManager.addComponent(bs, entity);
		gridManager.generateTile(ecsManager, x, y, z);
	}

}
